@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion

REM ============================================
REM 模型下载工具（读取配置文件 URL 批量下载）
REM ============================================

REM 设置工作目录和变量
set "WORKSPACE=%~dp0"
set "PYTHON_PATH=%WORKSPACE%..\python\python.exe"
set "save_path=downModels"

REM 创建下载目录
if not exist "%WORKSPACE%%save_path%" (
    mkdir "%WORKSPACE%%save_path%"
)

REM 安装依赖并执行 Python 下载脚本
@REM "%PYTHON_PATH%" -m pip install huggingface_hub --quiet
"%PYTHON_PATH%" "%WORKSPACE%downlist.py"

echo.
echo 执行完成。
pause